    <%@ Page Title="Edit Commerce Product" MasterPageFile="../masterpages/umbracoPage.Master"
    ValidateRequest="false" Language="c#" CodeBehind="editProduct.aspx.cs" AutoEventWireup="True"
    Inherits="CommerceForUmbraco.adminSection.commerce.editProduct" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script src="../../js/prototype.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">

    <cc1:TabView runat="server" ID="tabControl" Width="552px" Height="692px" />
    
      <cc1:Pane ID="Pane1" runat="server" Height="600px" Width="330px">
        <cc1:PropertyPanel runat="server" ID="pp_name">
              <asp:TextBox ID="ProductName" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_sku">
              <asp:TextBox ID="ProductSku" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_short_description">
              <asp:TextBox ID="ShortDescription" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_our_price">
              <asp:TextBox ID="OurPrice" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_retail_price">
              <asp:TextBox ID="RetailPrice" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_manufacturer">
            <asp:DropDownList ID="Manufacturer" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_status">
              <asp:DropDownList ID="Status" runat="server"  Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_product_type">
              <asp:DropDownList ID="ProductType" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_shipping_type">
              <asp:DropDownList ID="ShippingType" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_ship_estimate">
              <asp:DropDownList ID="ShipEstimate" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_tax_type">
              <asp:DropDownList ID="TaxTypeDDL" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_stock_location">
              <asp:TextBox ID="StockLocation" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_weight">
              <asp:TextBox ID="Weight" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_currency_code">
              <asp:DropDownList ID="CurrencyCodeDDL" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_admin_comments">
              <asp:TextBox ID="AdminComments" runat="server" Width="300" Height="100" CssClass="guiInputText"></asp:TextBox>
        </cc1:PropertyPanel>

       </cc1:Pane>
       
      <cc1:Pane ID="Pane2" runat="server">
       <cc1:PropertyPanel ID="pp_categories" runat="server">
         <asp:DropDownList ID="categoryDDL" runat="server" Width="300" CssClass="guiInputText" />
         <asp:Button ID="categoryAddButton" runat="server" Text="Add" 
               onclick="categoryAddButton_Click" />         
       </cc1:PropertyPanel>
       <p>&nbsp;</p>
       <cc1:PropertyPanel ID="pp_category_list" runat="server">
        <asp:Repeater ID="categoryList" runat="server" 
               onitemcommand="categoryList_ItemCommand">
            <ItemTemplate>
            <asp:Label ID="CategoryNameDisplay" runat="server" CssClass="guiInputText" Width="300"><%#Eval("CategoryName") %></asp:Label>
            &nbsp;&nbsp;
            <asp:Button ID="categoryDeleteButton" runat="server" Text="Delete" CommandArgument='<%#Eval("CategoryID") %>' />
            <br />
            </ItemTemplate>
        </asp:Repeater>
       </cc1:PropertyPanel>
       </cc1:Pane>
       
      <cc1:Pane ID="Pane3" runat="server">
        <cc1:PropertyPanel ID="pp_images" runat="server">
            <asp:Panel ID="pnlMediaPicker" runat="server">
            </asp:Panel>
        </cc1:PropertyPanel>
      </cc1:Pane> 
      
      <cc1:Pane ID="Pane4" runat="server">
        <cc1:PropertyPanel ID="pp_add_descriptor_list_order" runat="server">
        	<asp:TextBox ID="DescriptorListOrder" runat="server" CssClass="guiInputText" >1</asp:TextBox>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel ID="pp_add_descriptor_title" runat="server">
			<asp:TextBox ID="DescriptorTitle" runat="server" CssClass="guiInputText" Width="300"></asp:TextBox>
			&nbsp;
			<asp:CheckBox ID="chkIsBulletedList" runat="server" Text="Is Bulleted List" CssClass="guiInputText" />
		</cc1:PropertyPanel>
		<cc1:PropertyPanel id="pp_add_descriptor_text" runat="server">
			<asp:TextBox ID="DescriptorText" runat="server" TextMode="MultiLine" CssClass="guiInputText" Width="300" Height="200"></asp:TextBox>
			<br />
			<asp:Button ID="SaveDescriptorButton" runat="server" Text="Add" onclick="SaveDescriptorButton_Click" />
		</cc1:PropertyPanel>
        <p>&nbsp;</p>
        <cc1:PropertyPanel ID="pp_descriptor_list" runat="server">
            <asp:Repeater ID="rptDescriptors" runat="server" 
                onitemcommand="rptDescriptors_ItemCommand">
				<ItemTemplate>
		            <p>&nbsp;</p>		
					<asp:Label id="DescriptorTitleDisplay" runat="server" CssClass="guiInputText" Width="300"><%#Eval("Title") %></asp:Label>
					<asp:CheckBox ID="chkIsBulletedList" runat="server" Checked='<%#(bool)Eval("isBulletedList") %>' Text="Is Bulleted List" CssClass="guiInputText"/>
					<br />
                    List Order:  <asp:TextBox ID="txtDescriptorListOrder" runat="server" Text='<%#Eval("listOrder")%>' Width="20px"></asp:TextBox>
                    <br />					
				    <asp:TextBox ID="txtDescriptor" runat="server" TextMode="MultiLine" CssClass="guiInputText" Width="300" Height="200" Text='<%#Eval("descriptor")%>'></asp:TextBox>
				    <br />
				    <asp:Button ID="DeleteDescriptorButton" runat="server" Text="Delete" CommandArgument='<%#Eval("descriptorID") %>' CommandName="delete" />
				</ItemTemplate>
			</asp:Repeater>
		</cc1:PropertyPanel>
      </cc1:Pane> 
      
      <!-- 
      <cc1:Pane ID="Pane5" runat="server">
        <cc1:PropertyPanel ID="PropertyPanel2" runat="server">
          
        </cc1:PropertyPanel>
      </cc1:Pane> 
      -->
      
      <cc1:Pane ID="Pane6" runat="server">
        <cc1:PropertyPanel ID="PropertyPanel3" runat="server">
          <asp:CheckBoxList ID="chkProducts" runat="server" CellPadding="5" CellSpacing="2" RepeatColumns="3" ></asp:CheckBoxList>
        </cc1:PropertyPanel>
      </cc1:Pane> 
       
       
</asp:Content>

